﻿using System.Drawing;
using DimensionsHelper.Common.Contracts.Excel;

namespace DimensionsHelper.Common.Excel;

public static class ColorExtensions
{

    public static Color ToColor(this ExcelStyleColor color)
    {
        return Color.FromArgb(color.R, color.G, color.B);
    }


    public static ExcelStyleColor ToExcelColor(this Color color)
    {
        return new ExcelStyleColor(color.R, color.G, color.B);
    }

}